<%@page import="com.cxk.hr.pojo.Employee"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="com.cxk.hr.security.*"%>
<%
	String path = request.getContextPath();
	String ip = IPKit.getIpAddrByRequest(request);
%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Welcome</title>
<meta name="keywords" content="">
<meta name="description" content="">
<link rel="shortcut icon" href="favicon.ico">
<link href="<%=path%>/statics/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
<link href="<%=path%>/statics/css/font-awesome.css?v=4.4.0"
	rel="stylesheet">
<link href="<%=path%>/statics/css/bootstrap.min.css" rel="stylesheet">
<link href="<%=path%>/statics/css/animate.css" rel="stylesheet">
<link href="<%=path%>/statics/css/style.css?v=4.1.0" rel="stylesheet">
<script>
	var myVar = setInterval(function() {
		myTimer()
	}, 1000);
	function myTimer() {
		var d = new Date();
		var t = d.toLocaleTimeString();
		document.getElementById("time").innerHTML = t;
	}
</script>
</head>
<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight">
		<div class="row">
			<div class="col-sm-12">
				<div class="jumbotron">
					<div style="margin-left: 250px">
						<p>&nbsp;</p>
						<%
							Employee employee = (Employee) session.getAttribute("loged");
						%>
						<h1><%=employee.getName()%></h1>
						<p>&nbsp;</p>
						<p>
							欢迎登录HR医院人事管理系统<%=ip%></p>
						<p id="time">&nbsp;</p>
						<p>&nbsp;</p>
						<p>
							<a
								href="<%=path%>/attendance/addStart?num=<%=employee.getEmployeeNumber()%>&ip=<%=ip%>"
								class="btn btn-info btn-lg">&nbsp;上班签到&nbsp;</a>&nbsp; &nbsp;
							&nbsp; &nbsp; &nbsp; <a
								href="<%=path%>/attendance/addEnd?num=<%=employee.getEmployeeNumber()%>"
								class="btn btn-info btn-lg">&nbsp;下班签到&nbsp;</a>
						</p>
						<p>&nbsp;</p>
						<p>&nbsp;</p>
					</div>
				</div>
			</div>
		</div>
	</div>
	<!-- 全局js -->
	<script src="<%=path%>/statics/js/jquery.min.js?v=2.1.4"></script>
	<script src="<%=path%>/statics/js/bootstrap.min.js?v=3.3.6"></script>

	<!-- 自定义js -->
	<script src="<%=path%>/statics/js/content.js?v=1.0.0"></script>

	<!-- layer javascript -->
	<script src="<%=path%>/statics/js/plugins/layer/layer.min.js"></script>
	<script>
		$("a").click(function() {
			if()
			parent.layer.alert('签到成功！')
		});
	</script>
</body>
</html>
